package com.yeebo.utils;

import java.util.Random;

/**
 * 随机生成工具类
 */
public class RandomUtils {

    public static Integer generateRandomNum(Integer min, Integer max) {
        Random rand = new Random();
        int diff = max - min + 1;
        return rand.nextInt(diff) + min;
    }

}
